package gui.obu;

import gui.AbstractDefensiveDriverPanel;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

import database.OBUdb;


import algorithm.Algorithms;

public class AbstractObuPanelImpl extends AbstractDefensiveDriverPanel {

	protected OBUdb database;
	protected Algorithms monitoring;
	
	public AbstractObuPanelImpl(Display display, Shell shell) {
		super(display, shell);
		try {
			database = new OBUdb();
		} catch (Exception e) {
			System.out.println("Unable to connect to database");
			e.printStackTrace();
		}
		
		monitoring = new Algorithms();
	}
	
	public void closeDatabase() {
		database.close();
	}
}
